<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/* Start of file administrator.php */
/* Location: ./member/controllers/administrator.php */
class Administrator extends CI_Controller {
	
	function __construct(){
		parent::__construct(); /* construct controller*/
		$this->load->model('members'); /* Load Member Model from member/models/members*/
    }
	
	function index(){
		$this->ws->set('title',lang('member')); /*Title Page*/
		$this->ws->set('recordset',$this->members->getAllMembers()); /*Get Data Table Member*/
		$this->ws->set_theme('administrator');/*Set theme to administrator theme*/
		$this->ws->view('administrator/list');/*Set views member/views/administrator/list*/
	}
	
	function addnew(){
		$this->ws->set('title',lang('add').' '.lang('member')); /* Title Page*/
		$this->ws->set_theme('administrator'); /*Set theme to administrator theme*/
		$this->ws->view('administrator/form'); /*Set views member/views/administrator/form*/
	}	
	
}
/* Start of file administrator.php */
/* Location: ./member/controllers/administrator.php */